"""zdemo URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views  视图函数
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views  类视图
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')

Including another URLconf  配置包含 其他路由

    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include

# 自动导包 的快捷键  alt(option) + enter
from ausers.views import index

urlpatterns = [
    # 这个是 django自带的  不用管
    path('admin/', admin.site.urls),

    #   路由 找到 函数
    path('login/', index),

    #  路由---子路由(路由文件)---函数
    path('register/', include('ausers.urls')),  # 访问的实际路径 总路由加上子路由 /reqister/user/
    # path('', include('ausers.urls')),# 访问的实际路径 总路由加上子路由 /user/

]
